package cz.jm.web.jmlib.client.dialog.items;

import com.google.gwt.user.client.ui.PasswordTextBox;

/** Polozka dialogu predstavujuca klasicky password box. Jedna sa vlastne 
 * input box s nezobrazovanim vstupu. */
public class PasswordBox extends DialogItem {

	private final PasswordTextBox password = new PasswordTextBox();


	public PasswordBox() {	

		setDialogMasterEntry(password);
		addWarningHint(password);
		password.setSize(PREFERED_MASTER_ENTRY_WIDTH, PREFERED_MASTER_ENTRY_HEIGHT);
	}

	public PasswordTextBox getPassword() {
    	return password;
    }

	@Override
    public String getValidationValue() {
	    return password.getValue();
    }



}
